<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: datagram.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('datagram_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">datagram.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="datagram_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  $Id: datagram.h,v fdb85a806585 2012/09/06 16:28:57 fp $</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  This file is part of the IgH EtherCAT Master.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  modify it under the terms of the GNU General Public License version 2, as</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  published by the Free Software Foundation.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  Public License for more details.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  with the IgH EtherCAT Master; if not, write to the Free Software</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  ---</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  The license mentioned above concerns the source code only. Using the</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  EtherCAT technology and brand is only permitted in compliance with the</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  industrial property and similar rights of Beckhoff Automation GmbH.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef __EC_DATAGRAM_H__</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define __EC_DATAGRAM_H__</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;linux/list.h&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;linux/time.h&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;linux/timex.h&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="globals_8h.html">globals.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015">   50</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a455bd48cbb495dc8b0c34ab831a7fb3d">   51</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a455bd48cbb495dc8b0c34ab831a7fb3d">EC_DATAGRAM_NONE</a> = 0x00, </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a4f04360dcb5d54e7fa9cc9d29b0201d4">   52</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a4f04360dcb5d54e7fa9cc9d29b0201d4">EC_DATAGRAM_APRD</a> = 0x01, </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015adde6a3abb46fc29cf612209f80961ffa">   53</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015adde6a3abb46fc29cf612209f80961ffa">EC_DATAGRAM_APWR</a> = 0x02, </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a1c72f47920669e05abafa39e4135aea4">   54</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a1c72f47920669e05abafa39e4135aea4">EC_DATAGRAM_APRW</a> = 0x03, </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a37da79feb57a32a0d5d009e43e36fc3b">   55</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a37da79feb57a32a0d5d009e43e36fc3b">EC_DATAGRAM_FPRD</a> = 0x04, </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a0c3a2341969ba72970430b534ffa7e92">   56</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a0c3a2341969ba72970430b534ffa7e92">EC_DATAGRAM_FPWR</a> = 0x05, </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a94bb7b04cafdb9a9b16708830df12420">   57</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a94bb7b04cafdb9a9b16708830df12420">EC_DATAGRAM_FPRW</a> = 0x06, </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a74127113716bd45eaf6009ecdcb74dfc">   58</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a74127113716bd45eaf6009ecdcb74dfc">EC_DATAGRAM_BRD</a>  = 0x07, </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015abe060a204f51ab1ce7d2ff4b8fc4dda0">   59</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015abe060a204f51ab1ce7d2ff4b8fc4dda0">EC_DATAGRAM_BWR</a>  = 0x08, </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7e441843805140c02dec287ec8ba0481">   60</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7e441843805140c02dec287ec8ba0481">EC_DATAGRAM_BRW</a>  = 0x09, </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015ae39583a474563f9420fee3bdcac8f738">   61</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015ae39583a474563f9420fee3bdcac8f738">EC_DATAGRAM_LRD</a>  = 0x0A, </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a8821b71eda807ab031ecf7e3030ebe1f">   62</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a8821b71eda807ab031ecf7e3030ebe1f">EC_DATAGRAM_LWR</a>  = 0x0B, </div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7b305ba36800dd3e5c61203cdd6a5093">   63</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7b305ba36800dd3e5c61203cdd6a5093">EC_DATAGRAM_LRW</a>  = 0x0C, </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a3480b2f60d4ee7fafd94582afd4a82b1">   64</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a3480b2f60d4ee7fafd94582afd4a82b1">EC_DATAGRAM_ARMW</a> = 0x0D, </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a924ce1c906dcb8263c6ed75e37bc35db">   66</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a924ce1c906dcb8263c6ed75e37bc35db">EC_DATAGRAM_FRMW</a> = 0x0E, </div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;} <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015">ec_datagram_type_t</a>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720">   74</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a5ccc352710bfd57969fdba9a13f91f71">   75</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a5ccc352710bfd57969fdba9a13f91f71">EC_DATAGRAM_INIT</a>,      </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720acb7d25358159e7c95e334a74b97d661c">   76</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720acb7d25358159e7c95e334a74b97d661c">EC_DATAGRAM_QUEUED</a>,    </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720abe88d98e46c97099702211a92e1d8c9d">   77</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720abe88d98e46c97099702211a92e1d8c9d">EC_DATAGRAM_SENT</a>,      </div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a95630d1e98f6217bf0392b4295c5bc6a">   78</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a95630d1e98f6217bf0392b4295c5bc6a">EC_DATAGRAM_RECEIVED</a>,  </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a9f9009188c7cee7d421908a8924ba5e8">   79</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a9f9009188c7cee7d421908a8924ba5e8">EC_DATAGRAM_TIMED_OUT</a>, </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720af9a4a9cb27dca2c36d87f734fa36debf">   80</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720af9a4a9cb27dca2c36d87f734fa36debf">EC_DATAGRAM_ERROR</a>      </div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;} <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720">ec_datagram_state_t</a>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structec__datagram__t.html">   87</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a6e6acbb9301ecc6f382740eae531f00a">   88</a></span>&#160;    <span class="keyword">struct </span>list_head queue; </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#aa1ff1596b3e36d19123be609dbf3de46">   89</a></span>&#160;    <span class="keyword">struct </span>list_head sent; </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a9804c4ebdbd3e7ff5b55bfe3aa33bbef">   90</a></span>&#160;    <a class="code" href="globals_8h.html#ad1a2101422888687598d7e1a630c6343">ec_device_index_t</a> <a class="code" href="structec__datagram__t.html#a9804c4ebdbd3e7ff5b55bfe3aa33bbef">device_index</a>; </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a5c19753e2f2a239f3496cde3f9c1ee53">   92</a></span>&#160;    <a class="code" href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015">ec_datagram_type_t</a> <a class="code" href="structec__datagram__t.html#a5c19753e2f2a239f3496cde3f9c1ee53">type</a>; </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#acbe5cfc2b01e0ec6cb720b3dc99c4027">   93</a></span>&#160;    uint8_t address[<a class="code" href="globals_8h.html#a636410fd74a8e87229296654da52d250">EC_ADDR_LEN</a>]; </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#ae7471d08444f2bc780532e9268859296">   94</a></span>&#160;    uint8_t *<a class="code" href="structec__datagram__t.html#ae7471d08444f2bc780532e9268859296">data</a>; </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#ae8d52c6dc3ef92d165d9d14cd9c3d593">   95</a></span>&#160;    <a class="code" href="globals_8h.html#ab62b6e667f97a3b63d18f8077487d249">ec_origin_t</a> <a class="code" href="structec__datagram__t.html#ae8d52c6dc3ef92d165d9d14cd9c3d593">data_origin</a>; </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a038f0d3706ceb82a71a87644bb5cb987">   96</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structec__datagram__t.html#a038f0d3706ceb82a71a87644bb5cb987">mem_size</a>; </div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a2bdc1dfd68576466bfe3d276b9322959">   97</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="structec__datagram__t.html#a2bdc1dfd68576466bfe3d276b9322959">data_size</a>; </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a76cb4206efa88c4084db0b99c802d5b9">   98</a></span>&#160;    uint8_t <a class="code" href="structec__datagram__t.html#a76cb4206efa88c4084db0b99c802d5b9">index</a>; </div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a1eeebb1d33d0dbf47498dd78a966977d">   99</a></span>&#160;    uint16_t <a class="code" href="structec__datagram__t.html#a1eeebb1d33d0dbf47498dd78a966977d">working_counter</a>; </div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a90d55e568be4b8464e9725c105d6c4b0">  100</a></span>&#160;    <a class="code" href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720">ec_datagram_state_t</a> <a class="code" href="structec__datagram__t.html#a90d55e568be4b8464e9725c105d6c4b0">state</a>; </div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#ifdef EC_HAVE_CYCLES</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    cycles_t cycles_sent; </div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a640ba704d00d50c33e930b6c641b55d7">  104</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structec__datagram__t.html#a640ba704d00d50c33e930b6c641b55d7">jiffies_sent</a>; </div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#ifdef EC_HAVE_CYCLES</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    cycles_t cycles_received; </div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a3a643445750ee67fa83d182eb720380e">  108</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structec__datagram__t.html#a3a643445750ee67fa83d182eb720380e">jiffies_received</a>; </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#af7007d254b40111c064caaac6f9c4f81">  110</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__datagram__t.html#af7007d254b40111c064caaac6f9c4f81">skip_count</a>; </div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#a9a6c9216d340b19a47e802ce89fbb269">  111</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structec__datagram__t.html#a9a6c9216d340b19a47e802ce89fbb269">stats_output_jiffies</a>; </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structec__datagram__t.html#af2690854e7fb1c410aa37a1ed225836d">  112</a></span>&#160;    <span class="keywordtype">char</span> name[<a class="code" href="globals_8h.html#ac67cff75d900b9f1112a4c1a635e495d">EC_DATAGRAM_NAME_SIZE</a>]; </div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;} <a class="code" href="structec__datagram__t.html">ec_datagram_t</a>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#a8c149b9109b8710239b65c14bcf87cfd">ec_datagram_init</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#abb57d145234f12a354a0286dab86f106">ec_datagram_clear</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#a43d78d0e9873569e4b5c840fafdadba5">ec_datagram_unqueue</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a92a101b920c6e3cedd187a74d148c65c">ec_datagram_prealloc</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#ae3a997439eaf8c94e0272e309f06da94">ec_datagram_zero</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a28104e7c3691ae038472f292d77f0e1c">ec_datagram_aprd</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#ab1f9df4ca5a9b197bbebab97c3b1b014">ec_datagram_apwr</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a09196132a8e2ba4455e29034c7c1c021">ec_datagram_aprw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a9189502fd72cb516ed7e34b717919d11">ec_datagram_armw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a0756df47b9ae51ded9a1ca2acc116c93">ec_datagram_fprd</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a874f9f8511a2a5bb94eea8a168031acd">ec_datagram_fpwr</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a06df15b353aba6fdfe1122e7c95eb19c">ec_datagram_fprw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a2e41788150abc1067d4e4d5db66c2541">ec_datagram_frmw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#aaf49430ca2c7ac387a389e66172a4228">ec_datagram_brd</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a0cf08cec8bb44d9f74fd92ded2a217bf">ec_datagram_bwr</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a9f81033d766e9c6e748485defc83a3e9">ec_datagram_brw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint16_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#aabc448d4b7b6ec688240c20bbf81db08">ec_datagram_lrd</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#ae86a6739ed9060237d935adb4240e1a7">ec_datagram_lwr</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#aecf0cddb70deea7a91ff65037faa8f29">ec_datagram_lrw</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a9c8a833002784ce7c8855b11afd5bd87">ec_datagram_lrd_ext</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>, uint8_t *);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#a40de84b0b6fa9336d4713a06da68dfdc">ec_datagram_lwr_ext</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>, uint8_t *);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keywordtype">int</span> <a class="code" href="datagram_8h.html#aec1a712ab2eb262b2100180787b30648">ec_datagram_lrw_ext</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *, uint32_t, <span class="keywordtype">size_t</span>, uint8_t *);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#ace816d0d8117ee2d89185bcae16d45e4">ec_datagram_print_state</a>(<span class="keyword">const</span> <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#a447b859841b687ecbe7bbf5ee896bc11">ec_datagram_print_wc_error</a>(<span class="keyword">const</span> <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="keywordtype">void</span> <a class="code" href="datagram_8h.html#a8802eeb907490d0f927538d95aaf805e">ec_datagram_output_stats</a>(<a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="datagram_8h.html#a9534d758b8408b2c7d5b64dcfbc0cd10">ec_datagram_type_string</a>(<span class="keyword">const</span> <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structec__datagram__t_html_a640ba704d00d50c33e930b6c641b55d7"><div class="ttname"><a href="structec__datagram__t.html#a640ba704d00d50c33e930b6c641b55d7">ec_datagram_t::jiffies_sent</a></div><div class="ttdeci">unsigned long jiffies_sent</div><div class="ttdoc">Jiffies, when the datagram was sent. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00104">datagram.h:104</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a3480b2f60d4ee7fafd94582afd4a82b1"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a3480b2f60d4ee7fafd94582afd4a82b1">EC_DATAGRAM_ARMW</a></div><div class="ttdoc">Auto Increment Physical Read Multiple Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00064">datagram.h:64</a></div></div>
<div class="ttc" id="globals_8h_html_a636410fd74a8e87229296654da52d250"><div class="ttname"><a href="globals_8h.html#a636410fd74a8e87229296654da52d250">EC_ADDR_LEN</a></div><div class="ttdeci">#define EC_ADDR_LEN</div><div class="ttdoc">Size of the EtherCAT address field. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00088">globals.h:88</a></div></div>
<div class="ttc" id="globals_8h_html_ac67cff75d900b9f1112a4c1a635e495d"><div class="ttname"><a href="globals_8h.html#ac67cff75d900b9f1112a4c1a635e495d">EC_DATAGRAM_NAME_SIZE</a></div><div class="ttdeci">#define EC_DATAGRAM_NAME_SIZE</div><div class="ttdoc">Size of the datagram description string. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00116">globals.h:116</a></div></div>
<div class="ttc" id="datagram_8h_html_a0756df47b9ae51ded9a1ca2acc116c93"><div class="ttname"><a href="datagram_8h.html#a0756df47b9ae51ded9a1ca2acc116c93">ec_datagram_fprd</a></div><div class="ttdeci">int ec_datagram_fprd(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT FPRD datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00273">datagram.c:273</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a1c72f47920669e05abafa39e4135aea4"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a1c72f47920669e05abafa39e4135aea4">EC_DATAGRAM_APRW</a></div><div class="ttdoc">Auto Increment Physical ReadWrite. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00054">datagram.h:54</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a2bdc1dfd68576466bfe3d276b9322959"><div class="ttname"><a href="structec__datagram__t.html#a2bdc1dfd68576466bfe3d276b9322959">ec_datagram_t::data_size</a></div><div class="ttdeci">size_t data_size</div><div class="ttdoc">Size of the data in data. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00097">datagram.h:97</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a7e441843805140c02dec287ec8ba0481"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7e441843805140c02dec287ec8ba0481">EC_DATAGRAM_BRW</a></div><div class="ttdoc">Broadcast ReadWrite. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00060">datagram.h:60</a></div></div>
<div class="ttc" id="datagram_8h_html_aec1a712ab2eb262b2100180787b30648"><div class="ttname"><a href="datagram_8h.html#aec1a712ab2eb262b2100180787b30648">ec_datagram_lrw_ext</a></div><div class="ttdeci">int ec_datagram_lrw_ext(ec_datagram_t *, uint32_t, size_t, uint8_t *)</div><div class="ttdoc">Initializes an EtherCAT LRW datagram with external memory. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00543">datagram.c:543</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a9a6c9216d340b19a47e802ce89fbb269"><div class="ttname"><a href="structec__datagram__t.html#a9a6c9216d340b19a47e802ce89fbb269">ec_datagram_t::stats_output_jiffies</a></div><div class="ttdeci">unsigned long stats_output_jiffies</div><div class="ttdoc">Last statistics output. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00111">datagram.h:111</a></div></div>
<div class="ttc" id="structec__datagram__t_html_ae8d52c6dc3ef92d165d9d14cd9c3d593"><div class="ttname"><a href="structec__datagram__t.html#ae8d52c6dc3ef92d165d9d14cd9c3d593">ec_datagram_t::data_origin</a></div><div class="ttdeci">ec_origin_t data_origin</div><div class="ttdoc">Origin of the data memory. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00095">datagram.h:95</a></div></div>
<div class="ttc" id="structec__datagram__t_html"><div class="ttname"><a href="structec__datagram__t.html">ec_datagram_t</a></div><div class="ttdoc">EtherCAT datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00087">datagram.h:87</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015ae39583a474563f9420fee3bdcac8f738"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015ae39583a474563f9420fee3bdcac8f738">EC_DATAGRAM_LRD</a></div><div class="ttdoc">Logical Read. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00061">datagram.h:61</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a1eeebb1d33d0dbf47498dd78a966977d"><div class="ttname"><a href="structec__datagram__t.html#a1eeebb1d33d0dbf47498dd78a966977d">ec_datagram_t::working_counter</a></div><div class="ttdeci">uint16_t working_counter</div><div class="ttdoc">Working counter. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00099">datagram.h:99</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720abe88d98e46c97099702211a92e1d8c9d"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720abe88d98e46c97099702211a92e1d8c9d">EC_DATAGRAM_SENT</a></div><div class="ttdoc">Sent (still in the queue). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00077">datagram.h:77</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a37da79feb57a32a0d5d009e43e36fc3b"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a37da79feb57a32a0d5d009e43e36fc3b">EC_DATAGRAM_FPRD</a></div><div class="ttdoc">Configured Address Physical Read. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00055">datagram.h:55</a></div></div>
<div class="ttc" id="datagram_8h_html_a92a101b920c6e3cedd187a74d148c65c"><div class="ttname"><a href="datagram_8h.html#a92a101b920c6e3cedd187a74d148c65c">ec_datagram_prealloc</a></div><div class="ttdeci">int ec_datagram_prealloc(ec_datagram_t *, size_t)</div><div class="ttdoc">Allocates internal payload memory. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00150">datagram.c:150</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a5c19753e2f2a239f3496cde3f9c1ee53"><div class="ttname"><a href="structec__datagram__t.html#a5c19753e2f2a239f3496cde3f9c1ee53">ec_datagram_t::type</a></div><div class="ttdeci">ec_datagram_type_t type</div><div class="ttdoc">Datagram type (APRD, BWR, etc.). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00092">datagram.h:92</a></div></div>
<div class="ttc" id="globals_8h_html"><div class="ttname"><a href="globals_8h.html">globals.h</a></div><div class="ttdoc">Global definitions and macros. </div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a8821b71eda807ab031ecf7e3030ebe1f"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a8821b71eda807ab031ecf7e3030ebe1f">EC_DATAGRAM_LWR</a></div><div class="ttdoc">Logical Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00062">datagram.h:62</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720a5ccc352710bfd57969fdba9a13f91f71"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a5ccc352710bfd57969fdba9a13f91f71">EC_DATAGRAM_INIT</a></div><div class="ttdoc">Initial state of a new datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00075">datagram.h:75</a></div></div>
<div class="ttc" id="datagram_8h_html_abb57d145234f12a354a0286dab86f106"><div class="ttname"><a href="datagram_8h.html#abb57d145234f12a354a0286dab86f106">ec_datagram_clear</a></div><div class="ttdeci">void ec_datagram_clear(ec_datagram_t *)</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00118">datagram.c:118</a></div></div>
<div class="ttc" id="datagram_8h_html_a28104e7c3691ae038472f292d77f0e1c"><div class="ttname"><a href="datagram_8h.html#a28104e7c3691ae038472f292d77f0e1c">ec_datagram_aprd</a></div><div class="ttdeci">int ec_datagram_aprd(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT APRD datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00189">datagram.c:189</a></div></div>
<div class="ttc" id="datagram_8h_html_ae3a997439eaf8c94e0272e309f06da94"><div class="ttname"><a href="datagram_8h.html#ae3a997439eaf8c94e0272e309f06da94">ec_datagram_zero</a></div><div class="ttdeci">void ec_datagram_zero(ec_datagram_t *)</div><div class="ttdoc">Fills the datagram payload memory with zeros. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00178">datagram.c:178</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a90d55e568be4b8464e9725c105d6c4b0"><div class="ttname"><a href="structec__datagram__t.html#a90d55e568be4b8464e9725c105d6c4b0">ec_datagram_t::state</a></div><div class="ttdeci">ec_datagram_state_t state</div><div class="ttdoc">State. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00100">datagram.h:100</a></div></div>
<div class="ttc" id="datagram_8h_html_ace816d0d8117ee2d89185bcae16d45e4"><div class="ttname"><a href="datagram_8h.html#ace816d0d8117ee2d89185bcae16d45e4">ec_datagram_print_state</a></div><div class="ttdeci">void ec_datagram_print_state(const ec_datagram_t *)</div><div class="ttdoc">Prints the state of a datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00565">datagram.c:565</a></div></div>
<div class="ttc" id="datagram_8h_html_a9534d758b8408b2c7d5b64dcfbc0cd10"><div class="ttname"><a href="datagram_8h.html#a9534d758b8408b2c7d5b64dcfbc0cd10">ec_datagram_type_string</a></div><div class="ttdeci">const char * ec_datagram_type_string(const ec_datagram_t *)</div><div class="ttdoc">Returns a string describing the datagram type. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00642">datagram.c:642</a></div></div>
<div class="ttc" id="globals_8h_html_ad1a2101422888687598d7e1a630c6343"><div class="ttname"><a href="globals_8h.html#ad1a2101422888687598d7e1a630c6343">ec_device_index_t</a></div><div class="ttdeci">ec_device_index_t</div><div class="ttdoc">Master devices. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00201">globals.h:201</a></div></div>
<div class="ttc" id="datagram_8h_html_ae86a6739ed9060237d935adb4240e1a7"><div class="ttname"><a href="datagram_8h.html#ae86a6739ed9060237d935adb4240e1a7">ec_datagram_lwr</a></div><div class="ttdeci">int ec_datagram_lwr(ec_datagram_t *, uint32_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT LWR datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00452">datagram.c:452</a></div></div>
<div class="ttc" id="datagram_8h_html_a0cf08cec8bb44d9f74fd92ded2a217bf"><div class="ttname"><a href="datagram_8h.html#a0cf08cec8bb44d9f74fd92ded2a217bf">ec_datagram_bwr</a></div><div class="ttdeci">int ec_datagram_bwr(ec_datagram_t *, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT BWR datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00393">datagram.c:393</a></div></div>
<div class="ttc" id="structec__datagram__t_html_af7007d254b40111c064caaac6f9c4f81"><div class="ttname"><a href="structec__datagram__t.html#af7007d254b40111c064caaac6f9c4f81">ec_datagram_t::skip_count</a></div><div class="ttdeci">unsigned int skip_count</div><div class="ttdoc">Number of requeues when not yet received. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00110">datagram.h:110</a></div></div>
<div class="ttc" id="datagram_8h_html_a9189502fd72cb516ed7e34b717919d11"><div class="ttname"><a href="datagram_8h.html#a9189502fd72cb516ed7e34b717919d11">ec_datagram_armw</a></div><div class="ttdeci">int ec_datagram_armw(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT ARMW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00252">datagram.c:252</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720">ec_datagram_state_t</a></div><div class="ttdeci">ec_datagram_state_t</div><div class="ttdoc">EtherCAT datagram state. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00074">datagram.h:74</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a4f04360dcb5d54e7fa9cc9d29b0201d4"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a4f04360dcb5d54e7fa9cc9d29b0201d4">EC_DATAGRAM_APRD</a></div><div class="ttdoc">Auto Increment Physical Read. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00052">datagram.h:52</a></div></div>
<div class="ttc" id="datagram_8h_html_aecf0cddb70deea7a91ff65037faa8f29"><div class="ttname"><a href="datagram_8h.html#aecf0cddb70deea7a91ff65037faa8f29">ec_datagram_lrw</a></div><div class="ttdeci">int ec_datagram_lrw(ec_datagram_t *, uint32_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT LRW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00471">datagram.c:471</a></div></div>
<div class="ttc" id="datagram_8h_html_a06df15b353aba6fdfe1122e7c95eb19c"><div class="ttname"><a href="datagram_8h.html#a06df15b353aba6fdfe1122e7c95eb19c">ec_datagram_fprw</a></div><div class="ttdeci">int ec_datagram_fprw(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT FPRW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00323">datagram.c:323</a></div></div>
<div class="ttc" id="datagram_8h_html_a40de84b0b6fa9336d4713a06da68dfdc"><div class="ttname"><a href="datagram_8h.html#a40de84b0b6fa9336d4713a06da68dfdc">ec_datagram_lwr_ext</a></div><div class="ttdeci">int ec_datagram_lwr_ext(ec_datagram_t *, uint32_t, size_t, uint8_t *)</div><div class="ttdoc">Initializes an EtherCAT LWR datagram with external memory. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00518">datagram.c:518</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015abe060a204f51ab1ce7d2ff4b8fc4dda0"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015abe060a204f51ab1ce7d2ff4b8fc4dda0">EC_DATAGRAM_BWR</a></div><div class="ttdoc">Broadcast Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00059">datagram.h:59</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a9804c4ebdbd3e7ff5b55bfe3aa33bbef"><div class="ttname"><a href="structec__datagram__t.html#a9804c4ebdbd3e7ff5b55bfe3aa33bbef">ec_datagram_t::device_index</a></div><div class="ttdeci">ec_device_index_t device_index</div><div class="ttdoc">Device via which the datagram shall be / was sent. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00090">datagram.h:90</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a455bd48cbb495dc8b0c34ab831a7fb3d"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a455bd48cbb495dc8b0c34ab831a7fb3d">EC_DATAGRAM_NONE</a></div><div class="ttdoc">Dummy. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00051">datagram.h:51</a></div></div>
<div class="ttc" id="datagram_8h_html_a43d78d0e9873569e4b5c840fafdadba5"><div class="ttname"><a href="datagram_8h.html#a43d78d0e9873569e4b5c840fafdadba5">ec_datagram_unqueue</a></div><div class="ttdeci">void ec_datagram_unqueue(ec_datagram_t *)</div><div class="ttdoc">Unqueue datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00132">datagram.c:132</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a924ce1c906dcb8263c6ed75e37bc35db"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a924ce1c906dcb8263c6ed75e37bc35db">EC_DATAGRAM_FRMW</a></div><div class="ttdoc">Configured Address Physical Read Multiple Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00066">datagram.h:66</a></div></div>
<div class="ttc" id="datagram_8h_html_a9f81033d766e9c6e748485defc83a3e9"><div class="ttname"><a href="datagram_8h.html#a9f81033d766e9c6e748485defc83a3e9">ec_datagram_brw</a></div><div class="ttdeci">int ec_datagram_brw(ec_datagram_t *, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT BRW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00413">datagram.c:413</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720acb7d25358159e7c95e334a74b97d661c"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720acb7d25358159e7c95e334a74b97d661c">EC_DATAGRAM_QUEUED</a></div><div class="ttdoc">Queued for sending. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00076">datagram.h:76</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a7b305ba36800dd3e5c61203cdd6a5093"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a7b305ba36800dd3e5c61203cdd6a5093">EC_DATAGRAM_LRW</a></div><div class="ttdoc">Logical ReadWrite. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00063">datagram.h:63</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720a9f9009188c7cee7d421908a8924ba5e8"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a9f9009188c7cee7d421908a8924ba5e8">EC_DATAGRAM_TIMED_OUT</a></div><div class="ttdoc">Timed out (dequeued). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00079">datagram.h:79</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a74127113716bd45eaf6009ecdcb74dfc"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a74127113716bd45eaf6009ecdcb74dfc">EC_DATAGRAM_BRD</a></div><div class="ttdoc">Broadcast Read. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00058">datagram.h:58</a></div></div>
<div class="ttc" id="datagram_8h_html_a2e41788150abc1067d4e4d5db66c2541"><div class="ttname"><a href="datagram_8h.html#a2e41788150abc1067d4e4d5db66c2541">ec_datagram_frmw</a></div><div class="ttdeci">int ec_datagram_frmw(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT FRMW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00348">datagram.c:348</a></div></div>
<div class="ttc" id="datagram_8h_html_a9c8a833002784ce7c8855b11afd5bd87"><div class="ttname"><a href="datagram_8h.html#a9c8a833002784ce7c8855b11afd5bd87">ec_datagram_lrd_ext</a></div><div class="ttdeci">int ec_datagram_lrd_ext(ec_datagram_t *, uint32_t, size_t, uint8_t *)</div><div class="ttdoc">Initializes an EtherCAT LRD datagram with external memory. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00493">datagram.c:493</a></div></div>
<div class="ttc" id="globals_8h_html_ab62b6e667f97a3b63d18f8077487d249"><div class="ttname"><a href="globals_8h.html#ab62b6e667f97a3b63d18f8077487d249">ec_origin_t</a></div><div class="ttdeci">ec_origin_t</div><div class="ttdoc">Origin type. </div><div class="ttdef"><b>Definition:</b> <a href="globals_8h_source.html#l00306">globals.h:306</a></div></div>
<div class="ttc" id="structec__datagram__t_html_ae7471d08444f2bc780532e9268859296"><div class="ttname"><a href="structec__datagram__t.html#ae7471d08444f2bc780532e9268859296">ec_datagram_t::data</a></div><div class="ttdeci">uint8_t * data</div><div class="ttdoc">Datagram payload. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00094">datagram.h:94</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a94bb7b04cafdb9a9b16708830df12420"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a94bb7b04cafdb9a9b16708830df12420">EC_DATAGRAM_FPRW</a></div><div class="ttdoc">Configured Address Physical ReadWrite. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00057">datagram.h:57</a></div></div>
<div class="ttc" id="datagram_8h_html_a447b859841b687ecbe7bbf5ee896bc11"><div class="ttname"><a href="datagram_8h.html#a447b859841b687ecbe7bbf5ee896bc11">ec_datagram_print_wc_error</a></div><div class="ttdeci">void ec_datagram_print_wc_error(const ec_datagram_t *)</div><div class="ttdoc">Evaluates the working counter of a single-cast datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00602">datagram.c:602</a></div></div>
<div class="ttc" id="datagram_8h_html_aaf49430ca2c7ac387a389e66172a4228"><div class="ttname"><a href="datagram_8h.html#aaf49430ca2c7ac387a389e66172a4228">ec_datagram_brd</a></div><div class="ttdeci">int ec_datagram_brd(ec_datagram_t *, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT BRD datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00373">datagram.c:373</a></div></div>
<div class="ttc" id="datagram_8h_html_ab1f9df4ca5a9b197bbebab97c3b1b014"><div class="ttname"><a href="datagram_8h.html#ab1f9df4ca5a9b197bbebab97c3b1b014">ec_datagram_apwr</a></div><div class="ttdeci">int ec_datagram_apwr(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT APWR datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00210">datagram.c:210</a></div></div>
<div class="ttc" id="datagram_8h_html_aabc448d4b7b6ec688240c20bbf81db08"><div class="ttname"><a href="datagram_8h.html#aabc448d4b7b6ec688240c20bbf81db08">ec_datagram_lrd</a></div><div class="ttdeci">int ec_datagram_lrd(ec_datagram_t *, uint32_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT LRD datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00433">datagram.c:433</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a038f0d3706ceb82a71a87644bb5cb987"><div class="ttname"><a href="structec__datagram__t.html#a038f0d3706ceb82a71a87644bb5cb987">ec_datagram_t::mem_size</a></div><div class="ttdeci">size_t mem_size</div><div class="ttdoc">Datagram data memory size. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00096">datagram.h:96</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720af9a4a9cb27dca2c36d87f734fa36debf"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720af9a4a9cb27dca2c36d87f734fa36debf">EC_DATAGRAM_ERROR</a></div><div class="ttdoc">Error while sending/receiving (dequeued). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00080">datagram.h:80</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015adde6a3abb46fc29cf612209f80961ffa"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015adde6a3abb46fc29cf612209f80961ffa">EC_DATAGRAM_APWR</a></div><div class="ttdoc">Auto Increment Physical Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00053">datagram.h:53</a></div></div>
<div class="ttc" id="datagram_8h_html_a8802eeb907490d0f927538d95aaf805e"><div class="ttname"><a href="datagram_8h.html#a8802eeb907490d0f927538d95aaf805e">ec_datagram_output_stats</a></div><div class="ttdeci">void ec_datagram_output_stats(ec_datagram_t *)</div><div class="ttdoc">Outputs datagram statistics at most every second. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00619">datagram.c:619</a></div></div>
<div class="ttc" id="datagram_8h_html_ac9882419ec1404dcca75761c4d1ce720a95630d1e98f6217bf0392b4295c5bc6a"><div class="ttname"><a href="datagram_8h.html#ac9882419ec1404dcca75761c4d1ce720a95630d1e98f6217bf0392b4295c5bc6a">EC_DATAGRAM_RECEIVED</a></div><div class="ttdoc">Received (dequeued). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00078">datagram.h:78</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015">ec_datagram_type_t</a></div><div class="ttdeci">ec_datagram_type_t</div><div class="ttdoc">EtherCAT datagram type. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00050">datagram.h:50</a></div></div>
<div class="ttc" id="datagram_8h_html_a03209bc3f89797943506f8f7c160b015a0c3a2341969ba72970430b534ffa7e92"><div class="ttname"><a href="datagram_8h.html#a03209bc3f89797943506f8f7c160b015a0c3a2341969ba72970430b534ffa7e92">EC_DATAGRAM_FPWR</a></div><div class="ttdoc">Configured Address Physical Write. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00056">datagram.h:56</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a76cb4206efa88c4084db0b99c802d5b9"><div class="ttname"><a href="structec__datagram__t.html#a76cb4206efa88c4084db0b99c802d5b9">ec_datagram_t::index</a></div><div class="ttdeci">uint8_t index</div><div class="ttdoc">Index (set by master). </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00098">datagram.h:98</a></div></div>
<div class="ttc" id="structec__datagram__t_html_a3a643445750ee67fa83d182eb720380e"><div class="ttname"><a href="structec__datagram__t.html#a3a643445750ee67fa83d182eb720380e">ec_datagram_t::jiffies_received</a></div><div class="ttdeci">unsigned long jiffies_received</div><div class="ttdoc">Jiffies, when the datagram was received. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00108">datagram.h:108</a></div></div>
<div class="ttc" id="datagram_8h_html_a8c149b9109b8710239b65c14bcf87cfd"><div class="ttname"><a href="datagram_8h.html#a8c149b9109b8710239b65c14bcf87cfd">ec_datagram_init</a></div><div class="ttdeci">void ec_datagram_init(ec_datagram_t *)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00088">datagram.c:88</a></div></div>
<div class="ttc" id="datagram_8h_html_a874f9f8511a2a5bb94eea8a168031acd"><div class="ttname"><a href="datagram_8h.html#a874f9f8511a2a5bb94eea8a168031acd">ec_datagram_fpwr</a></div><div class="ttdeci">int ec_datagram_fpwr(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT FPWR datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00298">datagram.c:298</a></div></div>
<div class="ttc" id="datagram_8h_html_a09196132a8e2ba4455e29034c7c1c021"><div class="ttname"><a href="datagram_8h.html#a09196132a8e2ba4455e29034c7c1c021">ec_datagram_aprw</a></div><div class="ttdeci">int ec_datagram_aprw(ec_datagram_t *, uint16_t, uint16_t, size_t)</div><div class="ttdoc">Initializes an EtherCAT APRW datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8c_source.html#l00231">datagram.c:231</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="datagram_8h.html">datagram.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
